<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"	
	xmlns:ace="http://www.icefaces.org/icefaces/components"
	template="/WEB-INF/templates/template.xhtml">
	<ui:param name="title" value="Учет продаж" />
	<ui:define name="tabItems">
		<ace:tabPane label="Продажи">
			<ui:include src="WEB-INF/templates/tabSales.xhtml" />
		</ace:tabPane>
		<ace:tabPane label="Офисы">
			<ui:include src="WEB-INF/templates/tabOffices.xhtml" />
		</ace:tabPane>
		<ace:tabPane label="Телефоны">
			<ui:include src="WEB-INF/templates/tabPhones.xhtml" />
		</ace:tabPane>
		<ace:tabPane label="Производители">
			<ui:include src="WEB-INF/templates/tabManufactors.xhtml" />
		</ace:tabPane>
		<ace:tabPane label="Пользователи" rendered="#{request.isUserInRole('ROLE_ADMIN')}">
			<ui:include src="WEB-INF/templates/tabPersons.xhtml" />
		</ace:tabPane>
	</ui:define>
</ui:composition>